#!/usr/bin/env python
# encoding: utf-8
"""
base.py

Created by rikugun on 2010-08-25.
Copyright (c) 2010 TYDIC. All rights reserved.
"""

import sys
import os

__CONFIG_FILE_PATH__ = os.path.join(os.getenv('HOME'),'.tydic_utils.ini')
def init_conf():
	"""初始化配置"""
	import shutil
	if not os.path.exists(__CONFIG_FILE_PATH__):
		shutil.copy(os.path.join(os.path.dirname(os.path.realpath(__file__)),'conf','tydic_utils.ini.default'),
			__CONFIG_FILE_PATH__)
		
def get_conf_path():
	"""获取配置"""
	init_conf()
	return __CONFIG_FILE_PATH__
	
